package com.stu.shiro;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author MI
 * @ClassName JWTToken.java
 * @createTime 2021年08月25日 15:21:00
 */
@Data
public class JWTToken implements AuthenticationToken {
    private static final long serialVersionUID = 1L;
    private String token;

    private String exipreAt;

    public JWTToken(String token) {
        this.token = token;
    }

    public JWTToken(String token, String exipreAt) {
        this.token = token;
        this.exipreAt = exipreAt;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
